<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let str1 = 'javascript';
        let [a, b, ...c] = str1; // 此时要遍历，就当作数组来用
        console.log(a,b,c);
        let {length: len, toLocaleUpperCase: up} = str1;
        console.log(len);
        console.log(str1.toLocaleUpperCase());
    </script>
</body>
</html>